package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.community.entity.ZyBuilding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.community.entity.vo.BuildingVo;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 楼栋  Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Component
public interface ZyBuildingMapper extends BaseMapper<ZyBuilding> {


    /**
     * 模糊查询及分页
     * @param page
     * @param buildingVo
     * @return
     */
        IPage<ZyBuilding> selectBuildingPage(IPage<ZyBuilding> page, BuildingVo buildingVo);

    /**
     * 模糊查询及分页
     * @param page
     * @param buildingVo
     * @return
     */
    IPage<ZyBuilding> selectBuilding(IPage<ZyBuilding> page, BuildingVo buildingVo,String communityId);
}
